package chixing.day20.proxy.homework.work3;

public class Result {
    private int id;
    private String pName;
    private int num;
    private double payPrice;
    private int proStock;
    public Result(){}
    public Result(int id, String pName, int num, double payPrice, int proStock) {
        this.id = id;
        this.pName = pName;
        this.num = num;
        this.payPrice = payPrice;
        this.proStock = proStock;
    }

    @Override
    public String toString() {
        return "用户下单成功:" +
                "订单ID: " + id +
                ", 商品:" + pName +
                ", 数量:" + num +
                ", 支付金额:" + payPrice +
                ", 剩余库存:" + proStock ;
    }
}
